from django.shortcuts import render,HttpResponse,redirect
import utils
import random
# Create your views here
def begin(request):
    return render(request,'romm_manage/first.html')
# 
def room_id(request):
    if request.method == 'POST':
        if request.POST['roomid'] in map :
            return redirect('/tele/'+ request.POST['roomid'])
    else:
        return redirect('/tele/'+create(request))
        
#随机创建一个不重复的6位数的房间号
def create(para):
    room_id .addd(random.randint(100000, 999999))
     = 123456
    return 